#!/usr/bin/env bash

project_path=$(cd `dirname $0`; cd .. ; pwd)
cd $project_path

#Mars
project_name=$1
#小马达
project_chinaes_name=$2
#项目info.plist路径
info_plist=$3
#远程服务器图片名称
image_name=$4
#版本号
version=$5
#build号
build=$6

#branchName
branch_name=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')

expect 1_AutoArchive/5.1_uploadHTML.exp $project_name $project_chinaes_name $version $build $branch_name $image_name || exit
